<h1>Search Enron Emails</h1>
<% form_tag search_path do %>
  <fieldset>
    <legend>Search</legend>
    <%= text_field_tag 'query', @query %>
  </fieldset>
  <%= submit_tag 'search' %>
<% end %>

<% if @all_results -%>

  <p>Your search for <%= h @query %> returned <%= @all_results.size %> 
Results:</p>

  <%= render :partial => 'link', :collection => @all_results -%>

	<p>
		Search result visualization: <%= h @graph_label%>
		<img src=<%= @graph_path %>> 
	</p>

<% end -%>
